perfc: Fix x86_64 build with perfc_arrays=y
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Jun 2010 06:19:38 +0000 (07:19 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Jun 2010 06:19:38 +0000 (07:19 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/include/asm-x86/x86_64/asm_defns.h

index df1343f6073821922c43b398932edb250e1afc4d..7a8cfdbb6ade153d25a7d210ebc8787a1419b7c5 100644 (file)
@@ -67,8 +67,9 @@
         pushq _cur;                             \
         movslq VCPU_processor(_cur),_cur;       \
         pushq %rdx;                             \
+        leaq __per_cpu_offset(%rip),%rdx;       \
+        movq (%rdx,_cur,8),_cur;                \
         leaq per_cpu__perfcounters(%rip),%rdx;  \
-        movq __per_cpu_offset(,_cur,8),_cur;    \
         addq %rdx,_cur;                         \
         popq %rdx;                              \
         incl _name*4(_cur,_idx,4);              \